package org.binglan.youziyuepai.enums;

import lombok.Getter;

/**
 * @description:
 * @author: sanjin
 * @date: 2019/4/2 20:41
 */
@Getter
public enum ResponseEnum {
    ERROR(0,"failed"),
    OK(1,"success"),
    AUTHENTICATEERROR(2,"您还没有登陆"),
    AUTHORIZATEERROR(3,"权限不足"),
    FORM_ERROR(4,"表单参数错误"),

    ;
    private int code;
    private String message;

    ResponseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }}
